import java.util.Scanner;

class Guessnumber {
    public static void main(String [] args) {
        int answer = (int)(Math.random()*100 + 1);
        System.out.println(answer);
        System.out.println("欢迎来到猜数字！");
        Scanner scan = new Scanner(System.in);
        int chances = 7;

            System.out.println("请猜⼀个1-100之间的整数，含1和100，你还有" + chances + "次机会：");
            int guess = scan.nextInt();

            if (guess > answer) {
                System.out.println("⼤了！");
            }else if(guess < answer){
                System.out.println("⼩了");
            }else{
                System.out.println("恭喜你！猜对拉！");

            }

        }
    }
